<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<title>企业注册 - 易安网</title>
		<script src="<%=request.getContextPath()%>/js/jquery.js" language="JavaScript"	type="text/javascript"></script>
		<script src="<%=request.getContextPath()%>/js/auntion.js" language="JavaScript"	type="text/javascript"></script>
		<s:if test='#request.type=="1"'>
		<script src="<%=request.getContextPath()%>/js/reguser.js"	language="JavaScript" type="text/javascript"></script>
		</s:if>
		<s:else>
		<script src="<%=request.getContextPath()%>/js/register2.js"	language="JavaScript" type="text/javascript"></script>
		</s:else>
		<!-- 
		<script src="<%=request.getContextPath()%>/js/reguser.js" language="JavaScript" type="text/javascript"></script>
		 -->	
		<script src="<%=request.getContextPath()%>/js/public.js"	language="JavaScript" type="text/javascript"></script>
		<link rel="stylesheet" href="<%=request.getContextPath()%>/css/auntion.css" type="text/css"/> 
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/login.css" type="text/css" />
		<link rel="stylesheet"	href="<%=request.getContextPath()%>/css/cfb_color.css"	type="text/css" />
		<link rel="shortcut icon" href="http://s.zbjimg.com/img/favicon.ico" type="image/x-icon" />
		<style type="text/css">
.zbj_suggest {
	background-color: White;
	border: solid 1px #C7C7C7;
}

.zbj_suggest div {
	cursor: default;
	padding-left: 5px;
}

.zbj_suggest div.select,.zbj_suggest div:hover {
	background-color: #DAF1FF;
	letter-spacing: 1px;
}

.reg_form .at_text em {
	top: 0;
}

.reg_form dd .sugNameCon {
	clear: both;
	width: 226px;
	margin-left: 73px;
	background-color: #DAF1FF;
	border: solid 1px #84D2FF;
}

.reg_form dd .sugNameCon label {
	cursor: pointer;
}

.at_text em.on {
	z-index: 1;
}
</style>

		<script type="text/javascript">
		/*
		$(document).ready(function(){
		    $('#reg_sub').click(function() {
		    	//alert("submit click");
		    	$('#reg_box').submit(); 
		    }) 		   
		  });
		  */
   function reloadVerifyCode(){
      var timenow = new Date().getTime();                        
      document.getElementById("chkImg").src="<%=request.getContextPath()%>/simpleCaptcha.jpg?d="+timenow;
   }
   
   var checkEmailflag=true;
   function checkEmail(txtEmail){
		var emailStr=txtEmail.value;
		if(emailStr == ""){
			$d("emailError").innerHTML="请输入Email";
			return;		
		}
		var params = {
					userId:'',
					email:emailStr
					};
		$.ajax({type: "POST",
		       url: "ajaxPwd_checkEmailExist.do",
		       data: params,
		       async: true,
		       success: function(result){
				 if(result.retcode=='0000'){
				  	emailError.innerHTML="";
				  	checkEmailflag=true;
				 }else{
				  	emailError.innerHTML=result.retmsg;
				 	checkEmailflag=false;
				 }
			  }
			},"json");
	}
	
	function checkSubmit(){
		if(checkEmailflag==false){
			alert("Email已被占用");
			return false;
		}
		
		return true;
	}
	
</script>
	</head>
	<body>
		<div class="login_page">
			<div class="l_tmenu">
				<a href="<%=request.getContextPath()%>/regist_page.do">免费注册</a> |
				<a href="<%=request.getContextPath()%>/loginPage.do">登录</a> |
				<a href="<%=request.getContextPath()%>/">易安首页</a> |
				<a href="<%=request.getContextPath()%>/pages.do?t=10">帮助</a>
			</div>
			<h1 class="at_cis">
				<a href="http://www.zhubajie.com/" class="at_gohome" title="返回易安网首页"></a>
			</h1>
			<div class="clearfix mb10">
				<div class="at_loc" id="div_bar" style="display:none">
					<span class="now">1.填写会员信息</span>
					<span class="line_frist"></span>
					<span>2.通过邮件确认</span>
					<span class="line_end"></span>
					<span>3.注册成功</span>
				</div>
				<span class="line_end"></span>
				<p class="crumb gray3">
				</p>
			</div>
			<!-- <div class="reg_box clearfix">  -->
			<div class="realMain clearfix mt10 zffs wdzh">
				<s:if test='#request.type=="1"'>
				<div class="sub_top" id="div_1">
					<span class="at_tab_i">个人会员注册</span>
					<a	href="<%=request.getContextPath()%>/regist_page.do?type=2" class="at_tab_i ">企业会员注册</a>
				</div>
				</s:if>
				<s:else>
				<div class="sub_top" id="div_2">
					<a	href="<%=request.getContextPath()%>/regist_page.do?type=1" class="at_tab_i ">个人会员注册</a>
					<span class="at_tab_i">企业会员注册</span>
				</div>
				</s:else>
				
				<s:if test='#request.type=="1"'>
				<div id="div_form1">
				<div class="tit gray3">
					<b class="gray1 mr15">企业注册</b>
				</div>
				<div class="reg_form" >
					<form id="reg_box" name="frm_reg" method="post"
						action="<%=request.getContextPath()%>/reguser_exec.do">
						<div></div>
						<dl>
							<dd class="clearfix" style="height: auto;">
								<em class="lab">用 户 名:</em>
								<span class="at_text t_1_d"> <input type="text" 
										id="u_name" name="userName" tabindex="2" /> </span>
								<div class="clear"></div>
							</dd>
							<dd class="clearfix">
								<em class="lab">设置密码:</em>
								<span class="at_text t_1_d"> <input type="password"
										id="u_pas" name="password" tabindex="3" /> </span>
							</dd>
							<dd class="clearfix">
								<em class="lab">确认密码:</em>
								<span class="at_text t_1_d"> <input type="password"
										id="u_pas1" tabindex="4" /> </span>
							</dd>
							<dd class="clearfix">
								<em class="lab">邮箱地址:</em>
								<span class="at_text t_1_d"> <input type="text"
										id="e_name" name="email" tabindex="5" /> </span>
							</dd>
 							
							<dd class="clearfix" style="height: auto;">
								<em class="lab"></em>
								<label for="auto_login">
									<input name="" type="checkbox" value="" id="auto_login"
										class="auto_login" checked="checked" />
									<span class="gray2">我接受</span>
								</label>
								<a href="javascript:void(0)">《易安网服务协议（试行）》</a>
							</dd>
							<dd class="clearfix">
								<em class="lab"></em>
								<a href="javascript:void(0)" class="at_but b_1_y" id="reg_sub"><u></u>注册</a>
							</dd>
						</dl>
					</form>
					
					<div class="have_count">
						<h3 class="mb10">
							已有个人易安网帐号？
						</h3>
						<p>
							<a href="<%=request.getContextPath()%>/loginPage.do"
								class="at_but b_1_g"> <u></u>立即登录 </a>
						</p>
						<p class="t">
							易安网是全球领先的创意服务交易平台，在这里您可以：
						</p>
						<dl>
							<dt>
								凭自己的一技之长，赚取真金白银
							</dt>
							<dd class="gray3">
								已有
								<em class="orange1" id="incomecount">--</em>人在易安网上获得收入，共领走
								<em class="orange1" id="amountcount">--</em>元赏金。
								<a href="http://www.zhubajie.com/m" target="_blank">我要赚钱</a>
							</dd>
							<dt>
								发布需求，获得四百万帮助
							</dt>
							<dd class="gray3">
								已有
								<em class="orange1" id="taskcount">--</em>人在易安网发布需求，并获得成功解决方案。
							</dd>
						</dl>
					</div>
					<div class="clear"></div>
					
					</div>	
				</div>
				</s:if>
				
				<!-- </div> -->
				
				<s:if test='#request.type=="2"'>
				<div id="div_form2">
				<div class="tit gray3">
					<b class="gray1 mr15">企业注册</b>
				</div>
				<div class="l-myzbj-tips fc6 mb10" style="padding: 3px 10px;">
					<span class="orange1 ml5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;温馨提示：如果您的公司已注册，请向公司管理员申请添加用户，无需再注册。</span>
				</div>
				<div class="reg_form">
					<form id="reg_box" name="frm_reg" action="<%=request.getContextPath()%>/regist_exec.do">
						<div></div>
						<dl>
							<dd class="clearfix" style="height: auto;">
								<em class="lab">公司名称:</em>
								<span class="at_text t_1_d"> <input type="text"
										id="u_cname" name="companyName" tabindex="1" /> </span>
								<div class="clear"></div>
							</dd>

							<dd class="clearfix" style="height: auto;">
								<em class="lab">用 户 名:</em>
								<span class="at_text t_1_d"> <input type="text" 
										id="u_name" name="userName" tabindex="2" /> </span>
								<div class="clear"></div>
							</dd>
							<dd class="clearfix">
								<em class="lab">设置密码:</em>
								<span class="at_text t_1_d"> <input type="password"
										id="u_pas" name="password" tabindex="3" /> </span>
							</dd>
							<dd class="clearfix">
								<em class="lab">确认密码:</em>
								<span class="at_text t_1_d"> <input type="password"
										id="u_pas1" tabindex="4" /> </span>
							</dd>
							<dd class="clearfix">
								<em class="lab">邮箱地址:</em>
								<span class="at_text t_1_d"> <input type="text"
										id="e_name" name="email" tabindex="5" /> </span>
							</dd>
							<!-- 因为需要邮箱验证才能通过，此处不加验证码
							<dd class="clearfix">
								<em class="lab">验证码:</em>
								<span class="at_text t_1_d"> <input type="text" value=""
										id="u_code" name="code" tabindex="6" style="width: 80px;" />&nbsp;
									<img id="chkImg"
										src="<%=request.getContextPath()%>/simpleCaptcha.jpg" /> 看不清？
									<a onclick="reloadVerifyCode();" href="#">换一张</a> </span>
							</dd>
 							-->
							<dd class="clearfix" style="height: auto;">
								<em class="lab"></em>
								<label for="auto_login">
									<input name="" type="checkbox" value="" id="auto_login"
										class="auto_login" checked="checked" />
									<span class="gray2">我接受</span>
								</label>
								<a href="javascript:void(0)">《易安网服务协议（试行）》</a>
							</dd>
							<dd class="clearfix">
								<em class="lab"></em>
								<a href="javascript:void(0)" class="at_but b_1_y" id="reg_sub"><u></u>注册</a>
							</dd>
						</dl>
					</form>

					<div class="have_count">
						<h3 class="mb10">
							已有企业易安网帐号？
						</h3>
						<p>
							<a href="<%=request.getContextPath()%>/loginPage.do"
								class="at_but b_1_g"> <u></u>立即登录 </a>
						</p>
						<p class="t">
							<a href="<%=request.getContextPath()%>/active.do" target="_self">激活已申请的企业账户</a>
						</p>
						<dl>
							<dt>
								凭自己的一技之长，赚取真金白银
							</dt>
							<dd class="gray3">
								已有
								<em class="orange1" id="incomecount">--</em>人在易安网上获得收入，共领走
								<em class="orange1" id="amountcount">--</em>元赏金。
								<a href="http://www.zhubajie.com/m" target="_blank">我要赚钱</a>
							</dd>
							<dt>
								发布需求，获得四百万帮助
							</dt>
							<dd class="gray3">
								已有
								<em class="orange1" id="taskcount">--</em>人在易安网发布需求，并获得成功解决方案。
							</dd>
						</dl>
					</div>
					<div class="clear"></div>
				</div>
				</div>
				</s:if>
				<!--reg_form-->
				
				
			
			<!--reg_box-->

			<!--底部-->
			<%@ include file="/user_button.jsp"%>
			<!--底部-->
		</div>
		<s:if test='#request.type=="1"'>
			<script type="text/javascript">
				new reguser(1);
			</script>
		</s:if>
		<s:else>
			<script type="text/javascript">
				new reg(1);
			</script>
		</s:else>
		
		
	</body>
</html>


